package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户学习课时实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_study_period")
public class UserStudyPeriod implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学习记录ID
     */
    @TableId(value = "studyid", type = IdType.AUTO)
    private Integer studyid;

    /**
     * 用户ID
     */
    @TableField("userid")
    private Integer userid;

    /**
     * 课时ID
     */
    @TableField("periodid")
    private Integer periodid;

    /**
     * 创建时间
     */
    @TableField("createdAt")
    private LocalDateTime createdAt;

    /**
     * 状态 (0-未学完 1-已学完)
     */
    @TableField("state")
    private Integer state;

    /**
     * 课时类型
     */
    @TableField("periodType")
    private Integer periodType;
} 